﻿@model DietPlanning.Models.Food

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Food</legend>

    <div class="display-label">FoodTypeID</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FoodTypeID)
    </div>

    <div class="display-label">FoodName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FoodName)
    </div>

    <div class="display-label">ImageURL</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ImageURL)
    </div>

    <div class="display-label">Calorie</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Calorie)
    </div>

    <div class="display-label">Carb</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Carb)
    </div>

    <div class="display-label">Protein</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Protein)
    </div>

    <div class="display-label">Fat</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Fat)
    </div>

    <div class="display-label">Amount</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Amount)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.FoodID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
